<?php /* Smarty version 2.6.26, created on 2010-11-22 23:56:23
         compiled from includes/header_code.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'basename', 'includes/header_code.tpl', 41, false),array('modifier', 'eF_formatTitlePath', 'includes/header_code.tpl', 59, false),)), $this); ?>
     <?php if ($_SESSION['s_login']): ?>
 <div id = "logout_link" style = "float:right;margin-top:5px" align="right">
    <?php if ($this->_tpl_vars['T_THEME_SETTINGS']->options['sidebar_interface'] != 0): ?>
   
   <?php if (isset ( $this->_tpl_vars['T_ONLINE_USERS_LIST'] )): ?> <script> var startUpdater = true; </script><?php else: ?><script> var startUpdater = false; </script><?php endif; ?>
   <?php if ($this->_tpl_vars['T_CONFIGURATION']['updater_period']): ?><script> var updaterPeriod = '<?php echo $this->_tpl_vars['T_CONFIGURATION']['updater_period']; ?>
';</script><?php else: ?><script>var updaterPeriod = 100000;</script><?php endif; ?>

   <?php if (isset ( $this->_tpl_vars['T_ONLINE_USERS_LIST'] ) && ! $this->_tpl_vars['T_CONFIGURATION']['disable_online_users']): ?>
    
    <?php if ($this->_tpl_vars['T_ONLINE_USERS_COUNT']): ?><span id = "online_users_display" class = "headerText" ><?php echo @_ONLINEUSERS; ?>
&nbsp;(<?php echo $this->_tpl_vars['T_ONLINE_USERS_COUNT']; ?>
)</span><span class = "headerText">&nbsp;|</span><?php endif; ?>


    
      <?php endif; ?>
   <?php if ($this->_tpl_vars['T_CURRENT_USER']->coreAccess['dashboard'] != 'hidden'): ?>
    <span class = "headerText"><!--<?php echo @_YOUARECURRENTLYLOGGEDINAS; ?>
:--></span><a href = "<?php echo $_SESSION['s_type']; ?>
.php?<?php if ($_SESSION['s_type'] == 'administrator'): ?>ctg=users&edit_user=<?php echo $_SESSION['s_login']; ?>
<?php else: ?>ctg=personal<?php endif; ?>" class="headerText">#filter:login-<?php echo $_SESSION['s_login']; ?>
#</a><span class="headerText">&nbsp;</span>
   <?php else: ?>
    <span class = "headerText"><!--<?php echo @_YOUARECURRENTLYLOGGEDINAS; ?>
:-->#filter:login-<?php echo $_SESSION['s_login']; ?>
#</span><span class="headerText">&nbsp;</span>
   <?php endif; ?>
   <?php if (isset ( $this->_tpl_vars['T_BAR_ADDITIONAL_ACCOUNTS'] )): ?>
        <select class = "inputSelectMed" onChange = "if (this.value != '') changeAccount(this.value)" >
     <option value="">[<?php echo @_SWITCHACCOUNT; ?>
]</option>
     <?php $_from = $this->_tpl_vars['T_BAR_ADDITIONAL_ACCOUNTS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['additional_accounts'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['additional_accounts']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
        $this->_foreach['additional_accounts']['iteration']++;
?>
       <option value="<?php echo $this->_tpl_vars['item']['login']; ?>
">#filter:login-<?php echo $this->_tpl_vars['item']['login']; ?>
#</option>
                 <?php endforeach; endif; unset($_from); ?>
             </select>
            <?php endif; ?>

        <a class = "headerText" href = "index.php?logout=true"> &nbsp;| <?php echo @_LOGOUT; ?>
</a>

  <?php elseif (((is_array($_tmp=$_SERVER['PHP_SELF'])) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp)) == 'index.php'): ?>
   <span class = "headerText"><?php echo @_YOUARECURRENTLYLOGGEDINAS; ?>
: </span><a href = "<?php echo $_SESSION['s_type']; ?>
page.php?dashboard=<?php echo $_SESSION['s_login']; ?>
" class = "headerText">#filter:login-<?php echo $_SESSION['s_login']; ?>
#</a>
   <a href = "index.php?logout=true" class = "headerText">(<?php echo @_LOGOUT; ?>
)</a>
  <?php endif; ?>
  <?php if ($this->_tpl_vars['T_THEME_SETTINGS']->options['sidebar_interface'] != 0 && $this->_tpl_vars['T_HEADER_CLASS'] == 'header'): ?><?php echo $this->_smarty_vars['capture']['t_path_additional_code']; ?>
<?php endif; ?>
 </div>

 <?php endif; ?>
 <?php if ($this->_tpl_vars['T_CONFIGURATION']['motto_on_header'] == 1): ?>
  <div id = "info">
   <div id = "site_name" class= "headerText">Platforma elearning CFR</div>
    <div id = "site_motto" class= "headerText">motoul</div>
        </div>
 <?php endif; ?>
 <?php if (! $this->_tpl_vars['hide_path']): ?>
 <div id = "path">
  <div id = "path_title"><?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('eF_formatTitlePath', true, $_tmp) : smarty_modifier_eF_formatTitlePath($_tmp)); ?>
</div>
  <div id = "tab_handles_div" style = "float:right;"><?php if ($this->_tpl_vars['T_THEME_SETTINGS']->options['sidebar_interface'] == 0 || $this->_tpl_vars['T_HEADER_CLASS'] == 'headerHidden'): ?><?php echo $this->_smarty_vars['capture']['t_path_additional_code']; ?>
<?php endif; ?></div>
   <div id = "path_language">
  <?php if (((is_array($_tmp=$_SERVER['PHP_SELF'])) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp)) == 'index.php' || $this->_tpl_vars['T_THEME_SETTINGS']->options['sidebar_interface'] != 0): ?>
         <?php if ($_SESSION['s_login']): ?>
          <?php if ($_SESSION['s_type'] == 'administrator'): ?>
              <form style="margin:0;padding:0;" action = "<?php echo @G_SERVERNAME; ?>
<?php echo $_SESSION['s_type']; ?>
.php?ctg=control_panel&op=search" method = "post">
          <?php else: ?>
              <form style="margin:0;padding:0;" action = "<?php echo @G_SERVERNAME; ?>
<?php echo $_SESSION['s_type']; ?>
.php?ctg=lessons&op=search" method = "post">
          <?php endif; ?>
     <input type="text" name="search_text"
      value = "<?php if (isset ( $_POST['search_text'] )): ?><?php echo $_POST['search_text']; ?>
<?php else: ?><?php echo @_SEARCH; ?>
...<?php endif; ?>"
      onclick="if(this.value=='<?php echo @_SEARCH; ?>
...')this.value='';" onblur="if(this.value=='')this.value='<?php echo @_SEARCH; ?>
...';"
      class = "searchBox" style = "background-image:url('images/16x16/search.png');"/>
     <input type = "hidden" name = "current_location" id = "current_location" value = ""/>
     </form>
   <?php else: ?>
       <?php echo $this->_smarty_vars['capture']['header_language_code']; ?>

   <?php endif; ?>
  <?php endif; ?>
   </div>
 </div>
 <?php endif; ?>